<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue条件渲染</title>
    <script src="./vue.js"></script>
    <style>
        .test{
            color: red;
        }
    </style>
</head>
<body>
    <div id="app">
        <div v-if='show === "a"'>This is A</div>
        <div v-else-if='show === "b"'>This is B</div>
        <div v-else>This is others</div>
        <div v-show='show' class="test">{{message}}</div>
    </div>
    
    <script>
        var app = new Vue({
            el:'#app',
            data:{
                show:false,
                message:'Hello World!'
            },
            methods:{
                
            }
        })
        
    </script>
</body>
</html>